home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Controls
/
Visual Basic Controls.iso
/
vbcontrol
/
polardrw
/
data.z
/
frmPaper.frm
< prev
next >
Wrap
Text File
|
1999-04-29
|
10KB
|
302 lines
VERSION 5.00
Object = "{9D74B104-40BE-11D2-AA5F-008048E292F1}#1.0#0"; "COLORSELECT.OCX"
Begin VB.Form frmPaper
BorderStyle = 1 'Fixed Single
Caption = "Paper settings"
ClientHeight = 3315
ClientLeft = 45
ClientTop = 330
ClientWidth = 4935
Icon = "frmPaper.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3315
ScaleWidth = 4935
StartUpPosition = 1 'CenterOwner
Begin VB.CommandButton btnPaperOutlineColor
Caption = "Choose color..."
Height = 360
Left = 2910
TabIndex = 7
Top = 2085
Width = 1320
End
Begin VB.CommandButton btnPaperShadowColor
Caption = "Choose color..."
Height = 360
Left = 390
TabIndex = 5
Top = 2085
Width = 1320
End
Begin VB.CommandButton btnOK
Caption = "OK"
Height = 375
Left = 1200
TabIndex = 8
Top = 2865
Width = 870
End
Begin VB.CommandButton btnCancel
Caption = "Cancel"
Height = 375
Left = 2175
TabIndex = 18
Top = 2880
Width = 870
End
Begin VB.TextBox Text4
Height = 375
Left = 7095
TabIndex = 15
Text = "Text4"
Top = 4980
Width = 1335
End
Begin VB.TextBox Text3
Height = 375
Left = 6990
TabIndex = 14
Text = "Text3"
Top = 4035
Width = 1455
End
Begin VB.TextBox txtPageWidth
Height = 285
Left = 3525
TabIndex = 3
Text = "Text2"
Top = 705
Width = 765
End
Begin VB.TextBox txtPageHeight
Height = 285
Left = 3525
TabIndex = 2
Text = "Text1"
Top = 330
Width = 750
End
Begin VB.CommandButton btnPaperColor
Caption = "Choose color..."
Height = 360
Left = 285
TabIndex = 1
Top = 690
Width = 1320
End
Begin ColorSelectLib.ColorSelect ctlCSPaperColor
Height = 495
Left = 3795
TabIndex = 11
Top = 2970
Width = 375
_Version = 65536
_ExtentX = 661
_ExtentY = 873
_StockProps = 0
End
Begin VB.CheckBox chckShowPaper
Caption = "Show paper"
Height = 375
Left = 285
TabIndex = 0
Top = 240
Value = 1 'Checked
Width = 1215
End
Begin VB.Frame frOutline
Caption = "Paper outline"
Height = 1290
Left = 2640
TabIndex = 10
Top = 1305
Width = 2220
Begin ColorSelectLib.ColorSelect ctlCSPaperOutlineColor
Height = 135
Left = 360
TabIndex = 12
Top = 1320
Width = 735
_Version = 65536
_ExtentX = 1296
_ExtentY = 238
_StockProps = 0
End
Begin VB.CheckBox chckPaperOutline
Caption = "Show paper outline"
Height = 375
Left = 225
TabIndex = 6
Top = 360
Width = 1710
End
End
Begin VB.Frame frShadow
Caption = "Paper shadow"
Height = 1290
Left = 180
TabIndex = 9
Top = 1305
Width = 2220
Begin ColorSelectLib.ColorSelect ctlCSPaperShadowColor
Height = 375
Left = 240
TabIndex = 13
Top = 1440
Width = 375
_Version = 65536
_ExtentX = 661
_ExtentY = 661
_StockProps = 0
End
Begin VB.CheckBox chckPaperShadow
Caption = "Show paper shadow"
Height = 375
Left = 240
TabIndex = 4
Top = 345
Width = 1860
End
End
Begin VB.Label Label1
Caption = "mm"
Height = 225
Index = 1
Left = 4320
TabIndex = 20
Top = 810
Width = 345
End
Begin VB.Label Label1
Caption = "mm"
Height = 225
Index = 0
Left = 4320
TabIndex = 19
Top = 390
Width = 345
End
Begin VB.Label lblPageWidth
Caption = "Page width:"
Height = 255
Left = 2565
TabIndex = 17
Top = 735
Width = 975
End
Begin VB.Label lblPageHeight
Caption = "Page height:"
Height = 255
Left = 2565
TabIndex = 16
Top = 375
Width = 975
End
End
Attribute VB_Name = "frmPaper"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim fShowPaper, fShowPaperOutline, fShowPaperShadow As Boolean
Dim crPaperShadowColor, crPaperOutlineColor, crPaperColor As OLE_COLOR
Dim lPageHeight, lPageWidth As Long
Private Sub btnCancel_Click()
frmDrawVB.POLARDraw1.DrawPaper = fShowPaper
frmDrawVB.POLARDraw1.DrawPaperOutline = fShowPaperOutline
frmDrawVB.POLARDraw1.DrawPaperShadow = fShowPaperShadow
frmDrawVB.POLARDraw1.PageHeight = lPageHeight
frmDrawVB.POLARDraw1.PageWidth = lPageWidth
frmDrawVB.POLARDraw1.PaperColor = crPaperColor
frmDrawVB.POLARDraw1.PaperShadowColor = crPaperShadowColor
frmDrawVB.POLARDraw1.PaperOutlinecolor = crPaperOutlineColor
Unload Me
End Sub
Private Sub btnOK_Click()
fShowPaper = CBool(chckShowPaper.Value)
fShowPaperOutline = CBool(chckPaperOutline.Value)
fShowPaperShadow = CBool(chckPaperShadow.Value)
lPageHeight = txtPageHeight
lPageWidth = txtPageWidth
crPaperColor = ctlCSPaperColor.SelectedColor
crPaperShadowColor = ctlCSPaperShadowColor.SelectedColor
crPaperOutlineColor = ctlCSPaperOutlineColor.SelectedColor
frmDrawVB.POLARDraw1.DrawPaper = fShowPaper
frmDrawVB.POLARDraw1.DrawPaperOutline = fShowPaperOutline
frmDrawVB.POLARDraw1.DrawPaperShadow = fShowPaperShadow
frmDrawVB.POLARDraw1.PageHeight = lPageHeight
frmDrawVB.POLARDraw1.PageWidth = lPageWidth
frmDrawVB.POLARDraw1.PaperColor = crPaperColor
frmDrawVB.POLARDraw1.PaperShadowColor = crPaperShadowColor
frmDrawVB.POLARDraw1.PaperOutlinecolor = crPaperOutlineColor
Unload Me
End Sub
Private Sub btnPaperColor_Click()
ColorSelectPosition ctlCSPaperColor
ctlCSPaperColor.SelectColor
End Sub
Private Sub btnPaperOutlineColor_Click()
ColorSelectPosition ctlCSPaperOutlineColor
ctlCSPaperOutlineColor.SelectColor
End Sub
Private Sub btnPaperShadowColor_Click()
ColorSelectPosition ctlCSPaperShadowColor
ctlCS